<?php
    include 'config.php';
    include 'function.php';
    $m='';
	$a='';
	$m=@($_GET['m'])?$_GET['m']:'';
	$a=@($_GET['act'])?$_GET['act']:'';
    
	if($m!=''&&$a!=''){
		$ma="sites/".$m."/".$a.".php";
	    @include($ma);
	}
    $tem = new XTemplate('index.html');
    $treeview = treeview();
    $tem->assign('treeview',$treeview);
  //  $tem->assign('message',$message);
    @$tem->assign('maincontent',$maincontent);
	$tem->parse('MAIN');
    $tem->out('MAIN');
?>